package com.baidu;

/**
 * @Author 12629
 * @Description：
 */
class TestStatic {
    public static int count = 10;


    public static void main(String[] args) {
        TestStatic testStatic1 = new TestStatic();
        testStatic1.count++;


        TestStatic testStatic2 = new TestStatic();
        testStatic2.count++;


        TestStatic testStatic3 = new TestStatic();
        testStatic3.count++;

        TestStatic.count--;

        System.out.println(TestStatic.count);//12
    }
}

class Person {
    public static int age = 10;
}


public class Test {

    public static void main(String[] args) {
        Student student1 = new Student("小明",10);
        System.out.println(student1);


        //student1.show();

        //System.out.println(Student.classRoom);
        //System.out.println(Student.classRoom);


    }

    public static void main5(String[] args) {
        Student student1 = new Student("小明",10);
        System.out.println("=========");
        Student student2 = new Student("小明",10);
    }


    public static void main4(String[] args) {


        {
            int b = 20;
            System.out.println(b);
        }

        //System.out.println(b);
    }

    public static void main3(String[] args) {
        Person person = null;
        //person.age
        System.out.println(person.age);
    }

    public static void main2(String[] args) {
        /*Student student1 = new Student("小明",10);
        student1.staticFunc();*/
        Student.staticFunc();
    }






    public static void main1(String[] args) {

        Student student1 = new Student("小明",10);
        student1.classRoom = "410";

        Student student2 = new Student("小李",20);


        Student.classRoom = "410";


    }
}
